﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using SqlSugar;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 设备管理:设备台账
/// </summary>
[Tenant("1300000000001")]
[SugarTable("deviceledger", "设备管理:设备台账")]
public class Deviceledger : EntityBaseDel
{
    /// <summary>
    /// 设备编码
    /// </summary>
    [SugarColumn(ColumnName = "DeviceLedgerCode", ColumnDescription = "设备编码", Length = 32)]
    public virtual string? DeviceLedgerCode { get; set; }
    
    /// <summary>
    /// 设备名称
    /// </summary>
    [SugarColumn(ColumnName = "DeviceLedgerName", ColumnDescription = "设备名称", Length = 32)]
    public virtual string? DeviceLedgerName { get; set; }
    
    /// <summary>
    /// 品牌名称
    /// </summary>
    [SugarColumn(ColumnName = "BrandName", ColumnDescription = "品牌名称", Length = 32)]
    public virtual string? BrandName { get; set; }
    
    /// <summary>
    /// 所属分类
    /// </summary>
    [SugarColumn(ColumnName = "DeviceTypeId", ColumnDescription = "所属分类")]
    public virtual long? DeviceTypeId { get; set; }
    
    /// <summary>
    /// 规格型号
    /// </summary>
    [SugarColumn(ColumnName = "SpecificationModel", ColumnDescription = "规格型号", Length = 32)]
    public virtual string? SpecificationModel { get; set; }
    
    /// <summary>
    /// 所属车间
    /// </summary>
    [SugarColumn(ColumnName = "WorkshopId", ColumnDescription = "所属车间")]
    public virtual long? WorkshopId { get; set; }
    
    /// <summary>
    /// 设备状态
    /// </summary>
    [SugarColumn(ColumnName = "DeviceStateId", ColumnDescription = "设备状态")]
    public virtual long? DeviceStateId { get; set; }
    
    /// <summary>
    /// 位置
    /// </summary>
    [SugarColumn(ColumnName = "DeviceLedgerPosition", ColumnDescription = "位置", Length = 32)]
    public virtual string? DeviceLedgerPosition { get; set; }
    
    /// <summary>
    /// 产能
    /// </summary>
    [SugarColumn(ColumnName = "Capacity", ColumnDescription = "产能", Length = 32)]
    public virtual string? Capacity { get; set; }
    
    /// <summary>
    /// 购买日期
    /// </summary>
    [SugarColumn(ColumnName = "PurchasingDate", ColumnDescription = "购买日期")]
    public virtual DateTime? PurchasingDate { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "DeviceLedgerNotes", ColumnDescription = "备注", Length = 32)]
    public virtual string? DeviceLedgerNotes { get; set; }
    
}
